<template>
  <a-modal
    width="400px"
    centered
    title="待办详情"
    class="img-preview-modal"
    :visible="visible"
    :footer="null"
    :bodyStyle="{height: 'auto',padding: '20px'}"
    @cancel="close"
  >
    <img src="../../../assets/img/moren.png" class="pic_car" alt />
    <a-row class="see_row" style="margin-top:16px;">
      <a-col :span="24">
        <span class="title-label">车牌号：</span>
        {{params.licensePlate}}
      </a-col>
      <a-col :span="24">
        <span class="title-label">车架号：</span>
        {{params.vehicleNo}}
      </a-col>
      <a-col :span="24" style="margin-bottom: 0">
        <span class="title-label">车辆型号：</span>
        {{params.model}}
      </a-col>

    </a-row>
  </a-modal>
</template>
<script>
import { vehicleSchedulingOrdersGet } from '@/services/message'

export default {
  components: {},

  data () {
    return {
      visible: false,
      params: {}
    }
  },
  methods: {
    onInitial (row) {
      this.visible = true
      this.carStoreAllList(row.orderId)
    },
    async carStoreAllList (id) {
      const res = await vehicleSchedulingOrdersGet(id)
      const { isSuccess, data: response, msg } = res
      if (isSuccess) {
        this.params = response
      } else {
        this.$message.newFun(msg, 'error', 2)
      }
    },
    // 关闭
    close () {
      this.visible = false
    }
  }
}
</script>
<style>
.pic_car {
  width: 360px;
  height: 204px;
  border: 1px solid rgba(216, 216, 216, 0.5);
}
</style>
